Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 8 Forum

Notes/Domino 8 Forum

Previous Next
Subject: Print Byte Array (for PDF) to browser
Feedback Type: Question
Product Area: Notes 8 Client
Technical Area: Application development
Platform: Windows XP client
Release: 8.0.2
Reproducible: Not applicable

I found an entry from Note/Domino 6 and 7 forum from 2003 that stated that it was not possible to write a byte array to the browser (via Print Statement [lotus script] or the PrintWriter[java]).:Forum entry:

"Unfortunately the answer was:
‘The implementation of agents in Domino makes it impossible to send binary data with the getAgentOutput in Java or the print function in LotusScript. There is [sic] two ways to "mimic" the sending of the binary data:

1. Create a temporary document and attach the binary data as a file and redirect the user to it
2. Use a servlet to "stream" out the content'"

(link -http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/05c22e857a870f6f45256cf1000484e7?OpenDocument)

I was curious if there was an update to Notes 8 that can accomplish this task.

I tried placing the byte array into a NotesStream and looping through the array into readable chucks (500 characters), adding the char value to a concating string varible than using the Print statement (Print tmp;). It appears the browser did not like the space between different printed chucks or theconverison of the byte array to char corrupts the file, not 100% sure.

However, the broswer would display the pdf with blank pages and an error stating that a corrupt charatcer. Yet, when I output the byte array, from the web consumer service, to a file (with the ext .pdf) it opens perfectly. The idea is to display the pdf in the browser doing everything within memory. Ie printing NotesStream to the browser or even printing the byte array.

Thanks for any assistance.


Feedback number WEBB8DP8WJ created by ~Ben Prealitobu on 02/02/2011


Print Byte Array (for PDF) to brows... (~Ben Prealitobu... 2.Feb.11)
. . RE: Print Byte Array (for PDF) to b... (~Hank Preponeve... 15.Nov.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS